<?php

use \Abstraction;

class TestSimpleRouter extends Abstraction\Router
{
    function createRoutes()
    {
        $routes = array();

        $routes [] = new testRegexpRoute( '@^entry/add$@', 'testController', 'sample', array('method' => 'add') );
        $routes [] = new testRegexpRoute( '@^entry/list$@', 'testController', 'sample', array( 'method' => 'list' ) );
        $routes [] = new testRegexpRoute( '@^entry/get/(?P<id>[0-9]+)$@', 'testController', 'sample', array( 'method' => 'show' ) );
        $routes [] = new testRegexpRoute( '@^entry/(?P<id>[0-9]+)$@', 'testController', 'sample', array( 'method' => 'show' ) );
        $routes [] = new testRegexpRoute( '@^test/no-action$@', 'testActionController', 'nonExistingMethod' );
        
        return $routes;
    }
}
